/*
 * Created by XiaoDongLei
 * Copyright (c) 2017-2017
 * Apache License
 * Version 2.0, January 2004
 * http://www.apache.org/licenses/
 *
 *
 *
 */
package orders;

import org.springframework.data.neo4j.annotation.GraphId;
import org.springframework.data.neo4j.annotation.NodeEntity;

/**
 * @author XiaoDongLei
 * @Package orders
 * @date 2018/4/1
 * @Description: 使用更为复杂的关联关系。
 * 从Item类中，抽象新的类，Product
 */
@NodeEntity
public class Product {
	@GraphId
	private Long id;

	private String name;

	private double price;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}
}
